﻿<!DOCTYPE html>
<!--[if IE]><![endif]-->
<html>
  
  <head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <title>Class QueryableExtensions
   | CodeJam </title>
    <meta name="viewport" content="width=device-width">
    <meta name="title" content="Class QueryableExtensions
   | CodeJam ">
    <meta name="generator" content="docfx 2.23.1.0">
    
    <link rel="shortcut icon" href="../../favicon.ico">
    <link rel="stylesheet" href="../../styles/docfx.vendor.css">
    <link rel="stylesheet" href="../../styles/docfx.css">
    <link rel="stylesheet" href="../../styles/main.css">
    <meta property="docfx:navrel" content="../../toc.html">
    <meta property="docfx:tocrel" content="toc.html">
    <meta property="docfx:rel" content="../../">
    
  </head>
  <body data-spy="scroll" data-target="#affix">
    <div id="wrapper">
      <header>
        
        <nav id="autocollapse" class="navbar navbar-inverse ng-scope" role="navigation">
          <div class="container">
            <div class="navbar-header">
              <button type="button" class="navbar-toggle" data-toggle="collapse" data-target="#navbar">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
              </button>
              
              <a class="navbar-brand" href="../../index.html">
                <img id="logo" class="svg" src="../../images/CodeJam.Main.Icon.png" alt="">
              </a>
            </div>
            <div class="collapse navbar-collapse" id="navbar">
              <form class="navbar-form navbar-right" role="search" id="search">
                <div class="form-group">
                  <input type="text" class="form-control" id="search-query" placeholder="Search" autocomplete="off">
                </div>
              </form>
            </div>
          </div>
        </nav>
        
        <div class="subnav navbar navbar-default">
          <div class="container hide-when-search" id="breadcrumb">
            <ul class="breadcrumb">
              <li></li>
            </ul>
          </div>
        </div>
      </header>
      <div class="container body-content">
        
        <div id="search-results">
          <div class="search-list"></div>
          <div class="sr-items"></div>
          <ul id="pagination"></ul>
        </div>
      </div>
      <div role="main" class="container body-content hide-when-search">
        
        <div class="sidenav hide-when-search">
          <a class="btn toc-toggle collapse" data-toggle="collapse" href="#sidetoggle" aria-expanded="false" aria-controls="sidetoggle">Show / Hide Table of Contents</a>
          <div class="sidetoggle collapse" id="sidetoggle">
            <div id="sidetoc"></div>
          </div>
        </div>
        <div class="article row grid-right">
          <div class="col-md-10">
            <article class="content wrap" id="_content" data-uid="CodeJam.Collections.QueryableExtensions">
  
  
  <h1 id="CodeJam_Collections_QueryableExtensions" data-uid="CodeJam.Collections.QueryableExtensions" class="text-break">Class QueryableExtensions
  </h1>
  <div class="markdown level0 summary"><p>Extensions for <span class="xref">System.Linq.IQueryable&lt;T&gt;</span></p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><span class="xref">System.Object</span></div>
    <div class="level1"><span class="xref">QueryableExtensions</span></div>
  </div>
  <div class="inheritedMembers">
    <h5>Inherited Members</h5>
    <div>
      <span class="xref">System.Object.ToString()</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.Equals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.ReferenceEquals(System.Object, System.Object)</span>
    </div>
    <div>
      <span class="xref">System.Object.GetHashCode()</span>
    </div>
    <div>
      <span class="xref">System.Object.GetType()</span>
    </div>
    <div>
      <span class="xref">System.Object.MemberwiseClone()</span>
    </div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="CodeJam.Collections.html">CodeJam.Collections</a></h6>
  <h6><strong>Assembly</strong>: CodeJam.dll</h6>
  <h5 id="CodeJam_Collections_QueryableExtensions_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static class QueryableExtensions</code></pre>
  </div>
  <h3 id="methods">Methods
  </h3>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Collections_QueryableExtensions_OrderBy__1_System_Linq_IQueryable___0__System_String_.md&amp;value=---%0Auid%3A%20CodeJam.Collections.QueryableExtensions.OrderBy%60%601(System.Linq.IQueryable%7B%60%600%7D%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Collections/QueryableExtensions.ApplyOrder.cs/#L21">View Source</a>
  </span>
  <a id="CodeJam_Collections_QueryableExtensions_OrderBy_" data-uid="CodeJam.Collections.QueryableExtensions.OrderBy*"></a>
  <h4 id="CodeJam_Collections_QueryableExtensions_OrderBy__1_System_Linq_IQueryable___0__System_String_" data-uid="CodeJam.Collections.QueryableExtensions.OrderBy``1(System.Linq.IQueryable{``0},System.String)">OrderBy&lt;T&gt;(IQueryable&lt;T&gt;, String)</h4>
  <div class="markdown level1 summary"><p>Sorts the elements of a sequence in ascending order according to a key.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IOrderedQueryable&lt;T&gt; OrderBy&lt;T&gt;(this IQueryable&lt;T&gt; source, string property)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Linq.IQueryable</span>&lt;T&gt;</td>
        <td><span class="parametername">source</span></td>
        <td><p>A sequence of values to order.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">property</span></td>
        <td><p>The property name.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Linq.IOrderedQueryable</span>&lt;T&gt;</td>
        <td><p>An <span class="xref">System.Linq.IOrderedQueryable&lt;T&gt;</span> whose elements are sorted according to a key.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Collections_QueryableExtensions_OrderByDescending__1_System_Linq_IQueryable___0__System_String_.md&amp;value=---%0Auid%3A%20CodeJam.Collections.QueryableExtensions.OrderByDescending%60%601(System.Linq.IQueryable%7B%60%600%7D%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Collections/QueryableExtensions.ApplyOrder.cs/#L33">View Source</a>
  </span>
  <a id="CodeJam_Collections_QueryableExtensions_OrderByDescending_" data-uid="CodeJam.Collections.QueryableExtensions.OrderByDescending*"></a>
  <h4 id="CodeJam_Collections_QueryableExtensions_OrderByDescending__1_System_Linq_IQueryable___0__System_String_" data-uid="CodeJam.Collections.QueryableExtensions.OrderByDescending``1(System.Linq.IQueryable{``0},System.String)">OrderByDescending&lt;T&gt;(IQueryable&lt;T&gt;, String)</h4>
  <div class="markdown level1 summary"><p>Sorts the elements of a sequence in descending order according to a key.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IOrderedQueryable&lt;T&gt; OrderByDescending&lt;T&gt;(this IQueryable&lt;T&gt; source, string property)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Linq.IQueryable</span>&lt;T&gt;</td>
        <td><span class="parametername">source</span></td>
        <td><p>A sequence of values to order.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">property</span></td>
        <td><p>The property name.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Linq.IOrderedQueryable</span>&lt;T&gt;</td>
        <td><p>An <span class="xref">System.Linq.IOrderedQueryable&lt;T&gt;</span> whose elements are sorted according to a key.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Collections_QueryableExtensions_Page__1_System_Linq_IQueryable___0__System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20CodeJam.Collections.QueryableExtensions.Page%60%601(System.Linq.IQueryable%7B%60%600%7D%2CSystem.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Collections/QueryableExtensions.cs/#L51">View Source</a>
  </span>
  <a id="CodeJam_Collections_QueryableExtensions_Page_" data-uid="CodeJam.Collections.QueryableExtensions.Page*"></a>
  <h4 id="CodeJam_Collections_QueryableExtensions_Page__1_System_Linq_IQueryable___0__System_Int32_System_Int32_" data-uid="CodeJam.Collections.QueryableExtensions.Page``1(System.Linq.IQueryable{``0},System.Int32,System.Int32)">Page&lt;T&gt;(IQueryable&lt;T&gt;, Int32, Int32)</h4>
  <div class="markdown level1 summary"><p>Extracts <code data-dev-comment-type="paramref" class="paramref">pageSize</code> elements from a sequence at a particular one-based page number.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IQueryable&lt;T&gt; Page&lt;T&gt;(this IQueryable&lt;T&gt; source, int pageIndex, int pageSize)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Linq.IQueryable</span>&lt;T&gt;</td>
        <td><span class="parametername">source</span></td>
        <td><p>The sequence from which to page.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">pageIndex</span></td>
        <td><p>The one-based page number.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">pageSize</span></td>
        <td><p>The size of the page.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Linq.IQueryable</span>&lt;T&gt;</td>
        <td><p>A new sequence containing elements are at the specified <code data-dev-comment-type="paramref" class="paramref">pageIndex</code> from the source sequence.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td><p>The type of the elements in the source sequence.</p>
</td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Collections_QueryableExtensions_Slice__1_System_Linq_IQueryable___0__System_Int32_System_Int32_.md&amp;value=---%0Auid%3A%20CodeJam.Collections.QueryableExtensions.Slice%60%601(System.Linq.IQueryable%7B%60%600%7D%2CSystem.Int32%2CSystem.Int32)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Collections/QueryableExtensions.cs/#L29">View Source</a>
  </span>
  <a id="CodeJam_Collections_QueryableExtensions_Slice_" data-uid="CodeJam.Collections.QueryableExtensions.Slice*"></a>
  <h4 id="CodeJam_Collections_QueryableExtensions_Slice__1_System_Linq_IQueryable___0__System_Int32_System_Int32_" data-uid="CodeJam.Collections.QueryableExtensions.Slice``1(System.Linq.IQueryable{``0},System.Int32,System.Int32)">Slice&lt;T&gt;(IQueryable&lt;T&gt;, Int32, Int32)</h4>
  <div class="markdown level1 summary"><p>Extracts <code data-dev-comment-type="paramref" class="paramref">count</code> elements from a sequence at a particular zero-based starting index.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IQueryable&lt;T&gt; Slice&lt;T&gt;(this IQueryable&lt;T&gt; source, int startIndex, int count)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Linq.IQueryable</span>&lt;T&gt;</td>
        <td><span class="parametername">source</span></td>
        <td><p>The sequence from which to extract elements.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">startIndex</span></td>
        <td><p>The zero-based index at which to begin slicing.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.Int32</span></td>
        <td><span class="parametername">count</span></td>
        <td><p>The number of items to slice out of the index.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Linq.IQueryable</span>&lt;T&gt;</td>
        <td><p>A new sequence containing any elements sliced out from the source sequence.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td><p>The type of the elements in the source sequence.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 id="CodeJam_Collections_QueryableExtensions_Slice__1_System_Linq_IQueryable___0__System_Int32_System_Int32__remarks">Remarks</h5>
  <div class="markdown level1 remarks"><p>If the starting position or count specified result in slice extending past the end of the sequence,
it will return all elements up to that point. There is no guarantee that the resulting sequence will
contain the number of elements requested - it may have anywhere from 0 to <code data-dev-comment-type="paramref" class="paramref">count</code>.</p>
</div>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Collections_QueryableExtensions_ThenBy__1_System_Linq_IOrderedQueryable___0__System_String_.md&amp;value=---%0Auid%3A%20CodeJam.Collections.QueryableExtensions.ThenBy%60%601(System.Linq.IOrderedQueryable%7B%60%600%7D%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Collections/QueryableExtensions.ApplyOrder.cs/#L46">View Source</a>
  </span>
  <a id="CodeJam_Collections_QueryableExtensions_ThenBy_" data-uid="CodeJam.Collections.QueryableExtensions.ThenBy*"></a>
  <h4 id="CodeJam_Collections_QueryableExtensions_ThenBy__1_System_Linq_IOrderedQueryable___0__System_String_" data-uid="CodeJam.Collections.QueryableExtensions.ThenBy``1(System.Linq.IOrderedQueryable{``0},System.String)">ThenBy&lt;T&gt;(IOrderedQueryable&lt;T&gt;, String)</h4>
  <div class="markdown level1 summary"><p>Performs a subsequent ordering of the elements in a sequence in ascending order according to a key.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IOrderedQueryable&lt;T&gt; ThenBy&lt;T&gt;(this IOrderedQueryable&lt;T&gt; source, string property)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Linq.IOrderedQueryable</span>&lt;T&gt;</td>
        <td><span class="parametername">source</span></td>
        <td><p>An <span class="xref">System.Linq.IOrderedEnumerable&lt;TElement&gt;</span> that contains elements to sort.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">property</span></td>
        <td><p>The property name.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Linq.IOrderedQueryable</span>&lt;T&gt;</td>
        <td><p>An <span class="xref">System.Linq.IOrderedQueryable&lt;T&gt;</span> whose elements are sorted according to a key.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
  <span class="small pull-right mobile-hide">
    <span class="divider">|</span>
    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Collections_QueryableExtensions_ThenByDescending__1_System_Linq_IOrderedQueryable___0__System_String_.md&amp;value=---%0Auid%3A%20CodeJam.Collections.QueryableExtensions.ThenByDescending%60%601(System.Linq.IOrderedQueryable%7B%60%600%7D%2CSystem.String)%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A">Improve this Doc</a>
  </span>
  <span class="small pull-right mobile-hide">
    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Collections/QueryableExtensions.ApplyOrder.cs/#L58">View Source</a>
  </span>
  <a id="CodeJam_Collections_QueryableExtensions_ThenByDescending_" data-uid="CodeJam.Collections.QueryableExtensions.ThenByDescending*"></a>
  <h4 id="CodeJam_Collections_QueryableExtensions_ThenByDescending__1_System_Linq_IOrderedQueryable___0__System_String_" data-uid="CodeJam.Collections.QueryableExtensions.ThenByDescending``1(System.Linq.IOrderedQueryable{``0},System.String)">ThenByDescending&lt;T&gt;(IOrderedQueryable&lt;T&gt;, String)</h4>
  <div class="markdown level1 summary"><p>Performs a subsequent ordering of the elements in a sequence in descending order according to a key.</p>
</div>
  <div class="markdown level1 conceptual"></div>
  <h5 class="decalaration">Declaration</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public static IOrderedQueryable&lt;T&gt; ThenByDescending&lt;T&gt;(this IOrderedQueryable&lt;T&gt; source, string property)</code></pre>
  </div>
  <h5 class="parameters">Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Linq.IOrderedQueryable</span>&lt;T&gt;</td>
        <td><span class="parametername">source</span></td>
        <td><p>An <span class="xref">System.Linq.IOrderedEnumerable&lt;TElement&gt;</span> that contains elements to sort.</p>
</td>
      </tr>
      <tr>
        <td><span class="xref">System.String</span></td>
        <td><span class="parametername">property</span></td>
        <td><p>The property name.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="returns">Returns</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Type</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="xref">System.Linq.IOrderedQueryable</span>&lt;T&gt;</td>
        <td><p>An <span class="xref">System.Linq.IOrderedQueryable&lt;T&gt;</span> whose elements are sorted according to a key.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h5 class="typeParameters">Type Parameters</h5>
  <table class="table table-bordered table-striped table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td><span class="parametername">T</span></td>
        <td></td>
      </tr>
    </tbody>
  </table>
</article>
          </div>
          
          <div class="hidden-sm col-md-2" role="complementary">
            <div class="sideaffix">
              <div class="contribution">
                <ul class="nav">
                  <li>
                    <a href="https://github.com/rsdn/CodeJam/new/master/apiSpec/new?filename=CodeJam_Collections_QueryableExtensions.md&amp;value=---%0Auid%3A%20CodeJam.Collections.QueryableExtensions%0Asummary%3A%20'*You%20can%20override%20summary%20for%20the%20API%20here%20using%20*MARKDOWN*%20syntax'%0A---%0A%0A*Please%20type%20below%20more%20information%20about%20this%20API%3A*%0A%0A" class="contribution-link">Improve this Doc</a>
                  </li>
                  <li>
                    <a href="https://github.com/rsdn/CodeJam/blob/master/Main/src/Collections/QueryableExtensions.cs/#L11" class="contribution-link">View Source</a>
                  </li>
                </ul>
              </div>
              <nav class="bs-docs-sidebar hidden-print hidden-xs hidden-sm affix" id="affix">
              <!-- <p><a class="back-to-top" href="#top">Back to top</a><p> -->
              </nav>
            </div>
          </div>
        </div>
      </div>
      
      <footer>
        <div class="grad-bottom"></div>
        <div class="footer">
          <div class="container">
            <span class="pull-right">
              <a href="#top">Back to top</a>
            </span>
            Copyright � 2015-2017
            
          </div>
        </div>
      </footer>
    </div>
    
    <script type="text/javascript" src="../../styles/docfx.vendor.js"></script>
    <script type="text/javascript" src="../../styles/docfx.js"></script>
    <script type="text/javascript" src="../../styles/main.js"></script>
  </body>
</html>
